const app = getApp() // 获取小程序全局唯一的实例

Page({
  data: {
    msg: "Hello Weapp!"
  },
  onLoad() {
    console.log("Index Page onLoad")
    // console.log(app.handleAppMethod())
    // console.log(app.globalData)
    console.log(getCurrentPages())
    console.log(this.pageRouter)
    console.log(this.router)
    // get data
    // set data
  },
  onShow() {
    console.log("Index Page onShow")
  },
  onHide() {
    console.log("Index Page onHide")
  },
  onReady() {
    console.log("Index Page onReady")
  },
  // "enablePullDownRefresh": true
  onPullDownRefresh() {
    console.log('onPullDownRefresh')
  },
  onReachBottom() {
    console.log('onReachBottom')
  },
  onShareAppMessage() {
    return {
      title: "砍一刀",
      imageUrl: "https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png"
    }
  },
  onPageScroll(e) {
    console.log(e)
  },
  onResize() {
    console.log("onResize")
  }
})